package com.hc.res;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CartDetailItem {
    /**
     * 规格编号
     */
    @ApiModelProperty(value = "规格编号")
    private Integer id;
    /**
     * 首图
     */
    @TableField(value = "img")
    @ApiModelProperty(value = "首图")
    private String img;

    /**
     * 卖点
     */
    @TableField(value = "sell_point")
    @ApiModelProperty(value = "卖点")
    private String sellPoint;

    /**
     * 规格名称
     */
    @ApiModelProperty(value = "规格名称")
    private String name;

    @TableField(value = "price1")
    @ApiModelProperty(value = "会员价格")
    private BigDecimal price1;

    /**
     * 个数
     */
    @ApiModelProperty(value = "个数")
    private Integer amount;

    /**
     * 每一项的总金额
     */
    @ApiModelProperty(value = "每一项的总金额")
    private BigDecimal money;
}